package com.zs.zcerp.entrance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.zcerp.entrance.entity.AhHoliday;

/**
 * 请假单接口, 操作数据库请假单接口
 */
public interface IAhHolidayService extends IService<AhHoliday> {

    /**
     * 新增请假单
     * @param ahHoliday
     */
    void saveAhHoliday(AhHoliday ahHoliday);

    /**
     * 查询请假单日期是否有重叠
     * @param ahHoliday
     * @return
     */
    Integer countByDate(AhHoliday ahHoliday);

    /**
     * 获取请假单编号
     * @param orgId
     * @return
     */
    String getAhHolidayId(Integer orgId);

}
